Skip to content

@W-20161521: remove basket refetch after mergeBasket call#3472

Merged
dannyphan2000 merged 2 commits intofeature/1cc_paymentsfrom
dannyphan2000.W-20161521.remove-refetch-not-needed
Nov 14, 2025
Merged

@W-20161521: remove basket refetch after mergeBasket call#3472
dannyphan2000 merged 2 commits intofeature/1cc_paymentsfrom
dannyphan2000.W-20161521.remove-refetch-not-needed

Conversation

@dannyphan2000
Copy link
Contributor

Remove basket refetch after mergeBasket call

Description

Remove basket refetch after mergeBasket call

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • Remove basket refetch after mergeBasket call

How to Test-Drive This PR

Follow 1CC user scenario.

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

Signed-off-by: d.phan <d.phan@salesforce.com>
@dannyphan2000 dannyphan2000 requested a review from a team as a code owner November 14, 2025 16:59
@dannyphan2000 dannyphan2000 added the skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated label Nov 14, 2025
@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Nov 14, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

})
const mergedBasketId = merged?.basketId
const refreshedBasketId = await currentBasketQuery.refetch()
basketId = refreshedBasketId?.data?.basketId || mergedBasketId || basket.basketId
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If merge basket fails for whatever reason, then we don't have a basket in context to go further. We should at least keep the basket.basket.Id if we feel strongly about removing the basket refetch.

Signed-off-by: d.phan <d.phan@salesforce.com>
@dannyphan2000 dannyphan2000 merged commit b138c8a into feature/1cc_payments Nov 14, 2025
12 of 42 checks passed
@dannyphan2000 dannyphan2000 deleted the dannyphan2000.W-20161521.remove-refetch-not-needed branch November 14, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Skip the "Changelog Check" GitHub Actions step even if the Changelog.md files are not updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants